package cm.kafka.constants;

import java.time.format.DateTimeFormatter;

public class LogCollectionConstants {

    public static  final String SEPARATOR = "@!";

    public static final String XML_KEY = "XML";

    public static final String JDBC_NAME = "jdbc"; // 日志采集 jdbc
    public static final String JDBC_ADD = "add"; // 日志采集 add
    public static final String JDBC_UPDATE = "update"; // 日志采集 add
    public static final String JDBC_DELETE = "delete"; // 日志采集 add

    public static final String JDBC_MYSQL_DRIVER = "com.mysql.cj.jdbc.Driver";
    public static final String JDBC_MYSQL_FIRST = "jdbc:mysql://";
    public static final String JDBC_URL_LAST = "/mysql?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&useSSL=false";

    public static final String JDBC_MYSQL = "MYSQL";
    public static final String JDBC_MYSQL_JOB = "MysqlTaskJob";

    public static final String LOG_TYPE_FTP = "ftp";
    public static final String LOG_TYPE_SFTP = "sftp";
    public static final String LOG_TYPE_WMI = "wmi";

    public static final String LOG_INDEX_NAME_ALIAS = "audit_log"; // 日志采集 索引别名

    public static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyyMMdd");

    public static final String UNCHECK = "0"; // 解析失败

    public static final String CHECKSUCESS = "1"; // 解析成功

    public static final String CHECKEFAILURE = "2"; // 未解析数据
}
